<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <meta charset="utf-8">
    <link href="/Public/css/Admin/Bootstrap/bootstrap.css" rel="stylesheet" />
    <link href="/Public/css/Admin/my.css" rel="stylesheet" />
    <link href="/Public/css/Admin/Validform/Validform.css" rel="stylesheet" />
    <link href="/Public/css/Home/your.css" rel="stylesheet" type="text/css">

    <script language="JavaScript" src="/Public/js/Admin/jquery.1.11.3.min.js"></script>
    <script language="JavaScript" src="/Public/js/Admin/my.js"></script>
    <script language="JavaScript" src="/Public/js/Admin/Bootstrap/bootstrap.min.js"></script>
    <script language="JavaScript" src="/Public/js/Admin/Bootstrap/bootstrap-treeview.js"></script>
    <script language="JavaScript" src="/Public/js/Admin/Validform/Validform_v5.3.2_min.js"></script>
    <script language="JavaScript" src="/Public/js/Home/your.js"></script>

    <script type="text/javascript">
        $(function(){
             $(".registerform").Validform();
        })
    </script>
</head>
<body>
<nav class="navbar navbar-inverse">
    <div class="container" style="width: 100%;padding:0;">
        <div class="navbar-collapse collapse" style="width: 100%;padding:0;">
            <ul class="nav navbar-nav" style="width: 100%">
                <li <?php if(session('column_select') == ''): ?>class="active "<?php endif; ?>><a  style="padding-left:30px;padding-right:30px" href="<?php echo U('modules/columnSelect');?>">首页</a></li>
                <?php if(session('admin_modules') != ''): $_result=session('admin_modules')['modules'];if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li
                            <?php if(session('column_select') != ''): if($val['id'] == session('column_select') ): ?>class="active"<?php endif; endif; ?>
                        >
                        <a style="padding-left:30px;padding-right:30px" href="<?php echo U('modules/columnSelect?id='.$val['id']);?>"  ><?php echo ($val["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; endif; ?>
                <li class="active" style="float:right"><a style="background-color:rgba(92, 173, 136, 0.92)" href="<?php echo U('index/quit');?>">退 出</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-md-2">
            <ul id="main-nav" class="nav nav-tabs nav-stacked" style="">
                <li class="active">
                    <a style="cursor:pointer"><i class="glyphicon glyphicon-th-large"></i>&nbsp;列表</a>
                </li>
                <?php if(session('modules_select') != ''): $_result=session('modules_select');if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li>
                            <a href="#systemSetting<?php echo ($val["id"]); ?>" class="nav-header collapsed" data-toggle="collapse">
                                <i class="glyphicon glyphicon-cog"></i><?php echo ($val["name"]); ?><span class="pull-right glyphicon glyphicon-chevron-down"></span>
                            </a>
                            <ul id="systemSetting<?php echo ($val["id"]); ?>" class="nav nav-list secondmenu collapse "  >
                                <?php if(is_array($val["list"])): $i = 0; $__LIST__ = $val["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val2): $mod = ($i % 2 );++$i;?><li><a id="color-eee<?php echo ($val["id"]); ?>-<?php echo ($val2["id"]); ?>" href="<?php echo U('Modules/select?id='.$val2['id']);?>"><i class="glyphicon glyphicon-user "></i><?php echo ($val2["name"]); ?></a></li>
                                    <?php if($val2['url'] != ''): if($val2['id'] == session('select') ): ?><script>
                                                $(document).ready(function(){
                                                    $("#systemSetting<?php echo ($val["id"]); ?>").addClass("in");
                                                    $("#color-eee<?php echo ($val["id"]); ?>-<?php echo ($val2["id"]); ?>").addClass("color-eee");
                                                });
                                            </script><?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
                            </ul>
                        </li><?php endforeach; endif; else: echo "" ;endif; endif; ?>
            </ul>
        </div>
        <div class="col-md-10" style="padding-left:0px;">
            <div class="panel panel-primary margin10" style="float:left;width:100%;min-height:650px;border-color:#3C4049;">
                <div class="panel-heading" style="background-color: #3C4049;">&nbsp;</div>
                <div class="panel-body">



<div >
    <form action="" method="post">
        <input type="text" class="form-control width10 rows_display" placeholder="项目名称" name="project_name" value="<?php echo ($select['project_name']); ?>">
        <input type="text" class="form-control width10 rows_display" placeholder="用户名" name="username"  value="<?php echo ($select['username']); ?>">
        状态：
        <select class="form-control width10 rows_display" name="valid">
            <option value="">全部</option>
            <?php if(is_array($valid)): $i = 0; $__LIST__ = $valid;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>"  <?php if(($key == $select['valid']) AND ($select['valid'] != null) ): ?>selected<?php endif; ?> ><?php echo ($val); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
        </select>
        融资轮次：
        <select class="form-control width10 rows_display" name="financing">
            <option value="">全部</option>
            <?php if(is_array($financing)): $i = 0; $__LIST__ = $financing;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><option value="<?php echo ($val["id"]); ?>" <?php if($val["id"] == $select['financing']): ?>selected<?php endif; ?>><?php echo ($val["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
        </select>
        所属区域：
        <select class="form-control width10 rows_display"  id="area_city"  onchange="city_change($(this),'city')">
            <option value="" >全部</option>
            <?php if(is_array($area)): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><option value="<?php echo ($val["city_code"]); ?>" <?php if($val["city_code"] == $select['area_parent']): ?>selected<?php endif; ?>><?php echo ($val["city_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
        </select>
        <select class="form-control width10 rows_display"   name="area" id="city"></select>
        行业阶段：
        <select class="form-control width10 rows_display" name="project_stage">
            <option value="">全部</option>
            <?php if(is_array($project_stage)): $i = 0; $__LIST__ = $project_stage;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><option value="<?php echo ($val["id"]); ?>" <?php if($val["id"] == $select['project_stage']): ?>selected<?php endif; ?>><?php echo ($val["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
        </select>
        <button type="submit" class="btn btn-primary">搜索</button>
    </form>
    <br>
    <table id="sample-table-1" class="table table-striped table-bordered table-hover wrfont14">
        <thead>
        <tr>
            <th>ID</th>
            <th>项目名称</th>
            <th>用户名</th>
            <th>融资轮次</th>
            <th>所属区域</th>
            <th>行业阶段</th>
            <th>公开</th>
            <th>状态</th>
            <th width="200px">操作</th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><tr>
                <td><?php echo ($val["id"]); ?></td>
                <td><?php echo ($val["name"]); ?></td>
                <td><?php echo ($val["user_username"]); ?></td>
                <td><?php echo ($val["financing_name"]); ?></td>
                <td><?php echo ($val["area_name"]); ?></td>
                <td><?php echo ($val["project_stage_name"]); ?></td>
                <td><?php echo \Common\Common\ConstantUtil::openStatus($val["open"])?></td>
                <td><?php echo \Common\Common\ConstantUtil::validStatus($val["status"])?></td>
                <td>
                    <?php if($val['status'] == \Common\Common\ConstantUtil::CODE_WAIT): ?><a href="<?php echo U('project/project_success?id='.$val['id']);?>" class="btn btn-warning btn-sm">同意</a>
                        <a href="<?php echo U('project/project_error?id='.$val['id']);?>" class="btn btn-danger btn-sm">拒绝</a><?php endif; ?>
                    <?php if($val['recommend'] == 1 ): ?><font color="green">已推荐</font>
                    <?php else: ?>
                        <a href="<?php echo U('project/recommend?id='.$val['id']);?>" class="btn btn-primary btn-sm">推荐</a><?php endif; ?>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
</div>


<div class="tk_content_page" style="width:100%"><?php echo ($page); ?></div>
<script>
    $(function(){
        var city_selected = "";
        <?php if($select['area'] != ''): ?>city_selected = <?php echo ($select["area"]); ?>;<?php endif; ?>
        _obj = $("#area_city");
        city_change(_obj,'city',city_selected);
    })
</script>
</div>
</div>
</div>
</body>
</html>